import Home from "../views/Home.vue";
import Login from "../views/Login/Login";
import Dashbord from "../views/Dashbord/Dashbord";

/**
 * hidden： 是否为blank页面
 * notLogin 是否需要登录
 */

export default [
    {
        path: "/login",
        name: "login",
        component: Login,
        hidden: true,
        meta: {
            title: "登录",
            notLogin: true
        }
    },
    {
        path: "/",
        name: "home",
        component: Home,
        redirect: "/dashbord",
        hidden: false,
        meta: {},
        children: [
            {
                path: "/dashbord",
                name: "dashbord",
                component: Dashbord,
                meta: {
                    title: "首页"
                }
            },
            {
                path: "/table",
                name: "table",
                component: () =>
                    import(
                        /* webpackChunkName: "component" */ "../views/Table/Index.vue"
                        ),
                redirect: "/dashbord",
                meta: {
                    title: "信息管理"
                },
                children: [
                    {
                        path: "/table/studentlist",
                        name: "tableStudent",
                        component: () =>
                            import(
                                /* webpackChunkName: "component" */ "../views/Table/StudentList.vue"
                                ),
                        meta: {
                            title: "学生信息"
                        }
                    },
                    {
                        path: "/table/teacherlist",
                        name: "tableTeacher",
                        component: () =>
                            import(
                                /* webpackChunkName: "component" */ "../views/Table/TeacherList.vue"
                                ),
                        meta: {
                            title: "老师信息"
                        },
                        children: [
                            {
                                path: "/table/teacherlist/teacherdetail",
                                name: "tableTeacherDetail",
                                component: () =>
                                    import(
                                        /* webpackChunkName: "component" */ "../views/Table/TeacherDetail.vue"
                                        ),
                                meta: {
                                    title: "老师详细信息"
                                }, children: [
                                    {
                                        path: "/table/teacherlist/teacherdetail/homework",
                                        name: "tableTeacherDetail",
                                        component: () =>
                                            import(
                                                /* webpackChunkName: "component" */ "../views/Table/homework.vue"
                                                ),
                                        meta: {
                                            title: "作业情况"
                                        },

                                    }
                                ]

                            },
                            {
                                path: "/table/teacherlist/teachertimetable",
                                name: "teacherTimetable",
                                component: () =>
                                    import(
                                        /* webpackChunkName: "component" */ "../views/Table/TeacherTimetable.vue"
                                        ),
                                meta: {
                                    title: "老师课程表"
                                }
                            }
                        ]
                    },
                    {
                        path: "/table/courselist",
                        name: "tableCourse",
                        component: () =>
                            import(
                                /* webpackChunkName: "component" */ "../views/Table/CourseList.vue"
                                ),
                        meta: {
                            title: "课程信息"
                        }
                    },
                    {
                        path: "/table/clazzlist",
                        name: "tableCourse",
                        component: () =>
                            import(
                                /* webpackChunkName: "component" */ "../views/Table/ClazzList.vue"
                                ),
                        meta: {
                            title: "班级信息"
                        },
                        children: [
                            {
                                path: "/table/clazzlist/clazzdetail",
                                name: "clazzdetail",
                                component: () =>
                                    import(
                                        /* webpackChunkName: "component" */ "../views/Table/ClazzDetail.vue"
                                        ),
                                meta: {
                                    title: "班级详细信息"
                                }
                            }
                        ]
                    }
                ]
            },
            {
                path: "/about",
                name: "about",
                meta: {
                    title: "系统设置"
                },
                component: () =>
                    import(
                        /* webpackChunkName: "component" */ "../views/About/About.vue"
                        )
            }
        ]
    }
];
